package org.aom.util;

import org.springframework.security.providers.encoding.Md5PasswordEncoder;

public class MD5Util {
	public static Md5PasswordEncoder md5coder = null;
	static {
		md5coder = new Md5PasswordEncoder();
	}

	public static String getMd5PasswordEncoder(String password, String salt) {
		return md5coder.encodePassword(password, salt);
	}

	public static void main(String[] args) {
		System.out.println(getMd5PasswordEncoder("f9944feb73388651fd2c067b3380d88a", "admin"));
	}	
}
